ÄúµÄλÖãºÑ°ÃÎÍøÊ×Ò³£¾±à³ÌÀÖÔ°£¾VBScript£¾VBScript


objects constants operators statements functions properties methods






FUNCTION:  Cos( )

Cos(Number)

The Cos function returns the cosine for a number (angle).

Code:
<% =Cos(45.0) %>

Output:
0.52532198881773

You can also use a negative number (angle).

Code:
<% =Cos(-45.0) %>

Output:
0.52532198881773